import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';
import index from '@/views/index/index.vue';
import directive from '@/views/directive/index.vue';

export const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    redirect: '/index',
  },
  {
    path: '/index',
    name: 'index',
    component: index,
  },
  {
    path: '/directive',
    name: 'directive',
    component: directive,
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
